<script type="text/javascript">

    $(document).ready(function() {
		// Setup Datagrid
		$('#datagrid_import').datagrid({  
			url:gs_path+'/'+controller+'/get_detail_gaji/', 
			queryParams: {
				idGaji : '<?php echo $idGaji; ?>'
			},
			rownumbers:true,
			// width:860,
			// height:410,
			// pagination:true,
			showFooter:true,
			singleSelect:true,
			columns:[[
				// { field : 'index_no', title : 'No', width : 30, align:'center', sortable:true },
				{ field : 'nama_kode_bayar', title : 'Nama Bayar', width : 230, sortable:true },
				{ field : 'pendapatan', title : 'Pendapatan (A)', width : 100, formatter:formatNumeric, sortable:true },
				{ field : 'potongan', title : 'Potongan (B)', width : 100, formatter:formatNumeric, sortable:true },
				{ field : 'kontribusi_koperasi', title : 'Kontribusi Kop (C)', width : 110, formatter:formatNumeric, sortable:true }
			]]
		});

		$('#datagrid_import2').datagrid({  
			url:gs_path+'/'+controller+'/get_detail_gaji', 
			showFooter:true,
			singleSelect:true,
			columns:[[
				{ field : 'nama_kode_bayar', title : 'Nama Bayar', width : 200, sortable:true },
				{ field : 'nilai', title : 'Pendapatan', width : 100, formatter:formatNumeric, sortable:true },
				{ field : 'nilai', title : 'Potongan', width : 100, formatter:formatNumeric, sortable:true },
				{ field : 'nilai', title : 'Kontribusi Kop', width : 100, formatter:formatNumeric, sortable:true },
				{ field : 'faktor', title : '', width : 60 },
			]]
		});
	});
</script>
<div id="datagrid_import" toolbar="#tb_import"></div>

<?php if(isset($title)){ ?><script type="text/javascript">$('#datagrid_import').parent().parent().parent().parent().parent().parent().parent().find('.panel-title').html('<?php echo addslashes($title); ?>');</script><?php } ?>